using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model
{
    /// <summary>
    /// 订单实体扩展
    /// </summary>
    public partial class Reportscorecmsfoodordering : corecmsfoodordering
    {
        /// <summary>
        /// 商品分类名字
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string foodTypeName { get; set; } = "";

        /// <summary>
        /// 退菜数量
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Decimal refQuantity { get; set; }

        /// <summary>
        /// 退菜金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Decimal refAmount { get; set; }

        /// <summary>
        /// 赠送数量
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Decimal giveQuantity { get; set; }

        /// <summary>
        /// 赠送金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Decimal giveAmount { get; set; }

        /// <summary>
        /// 销售数量
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Decimal saleQuantity { get; set; }

        /// <summary>
        /// 销售金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Decimal saleAmount { get; set; }

        /// <summary>
        /// 优惠金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Decimal reduceAmount { get; set; }


    }
    /// <summary>
    /// 订单支付实体
    /// </summary>
    public partial class Reportscorecmsfoodorderpayment : corecmsfoodorderpayment
    {
        /// <summary>
        /// 日期
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public DateTime? orderDate { get; set; }
        /// <summary>
        /// 支付ID
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public long? paymentId { get; set; }
        /// <summary>
        /// 订单类型
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int32? ordertype { get; set; }
        /// <summary>
        /// 订单号
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string orderNo { get; set; }

        /// <summary>
        /// 支付方式
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string paymentName { get; set; }

        /// <summary>
        /// 交易笔数
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int? count { get; set; } = 0;

        /// <summary>
        /// 退款金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal? refundAmount { get; set; } = 0;

        /// <summary>
        /// 退款笔数
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int? refundCount { get; set; } = 0;
    }

    /// <summary>
    /// 餐段营业统计
    /// </summary>
    public partial class Reportscorecmsfoodordermaster : corecmsfoodordermaster
    {
        /// <summary>
        /// 营业收入
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal? orderAmount { get; set; } = 0;

        /// <summary>
        /// 订单量
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal? orderCount { get; set; } = 0;

        /// <summary>
        /// 折前单均
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal? strDiscountOrder { get; set; } = 0;

        /// <summary>
        /// 折后单均
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal? endDiscountOrder { get; set; } = 0;

        /// <summary>
        /// 折前人均
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal? strDiscountPeople { get; set; } = 0;

        /// <summary>
        /// 折后人均
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal? endDiscountPeople { get; set; } = 0;
    }

    /// <summary>
    /// 收银员收款统计
    /// </summary>
    public partial class ReportUserClass : corecmsfoodordermaster
    {
        /// <summary>
        /// 收银员
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string name { get; set; }

        ///// <summary>
        ///// 结账方式类型(不确定该填写哪个值)
        ///// </summary>
        //[SugarColumn(IsIgnore = true)]
        //public string paymentType { get; set; }

        ///// <summary>
        ///// 结账方式
        ///// </summary>
        //[SugarColumn(IsIgnore = true)]
        //public string payment { get; set; }

        /// <summary>
        /// 收款小计
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal? sumAllAmount { get; set; } = 0;

        /// <summary>
        /// 营业收入（单据实收金额）
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal? sumRealAmount { get; set; } = 0;

        /// <summary>
        /// 会员充值
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal? balance { get; set; } = 0;
    }

    /// <summary>
    /// 收银员对应订单汇总
    /// </summary>
    public partial class ReportUserMaster : corecmsfoodordermaster
    {
        /// <summary>
        /// 操作员Id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public long sysUserId { get; set; }
        ///// <summary>
        ///// 收款小计
        ///// </summary>
        //[SugarColumn(IsIgnore = true)]
        //public decimal? sumAllAmount { get; set; } = 0;

        ///// <summary>
        ///// 营业收入（单据实收金额）
        ///// </summary>
        //[SugarColumn(IsIgnore = true)]
        //public decimal? sumRealAmount { get; set; } = 0;
    }

    /// <summary>
    /// 收银员对应会员充值
    /// </summary>
    public partial class ReportUserBalance
    {
        /// <summary>
        /// 会员充值
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal? balance { get; set; } = 0;

        /// <summary>
        /// 操作员Id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public long sysUserId { get; set; }
    }

    public partial class ReportSummarizeTrade : corecmsfoodordermaster
    {
        /// <summary>
        /// 营业收入
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal? orderAmount { get; set; } = 0;

        /// <summary>
        /// 订单量
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal? orderCount { get; set; } = 0;

        /// <summary>
        /// 优惠占比
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal? orderReduceDiscount { get; set; } = 0;
    }

    /// <summary>
    /// 会员充值明细
    /// </summary>
    public partial class ReportBalance
    {
        /// <summary>
        /// 交易id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int64 id { get; set; }

        /// <summary>
        /// 交易单号
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String orderId { get; set; }

        /// <summary>
        /// 交易时间
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public DateTime? createTime { get; set; }

        /// <summary>
        /// 支付时间
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public DateTime? paymentTime { get; set; }

        /// <summary>
        /// 会员姓名
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String userName { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String mobile { get; set; }

        /// <summary>
        /// 会员卡号
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String usernumber { get; set; }

        /// <summary>
        /// 交易类型
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int type { get; set; }

        /// <summary>
        /// 充值状态（0、失败；1、成功,2、已退款）
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int status { get; set; }

        /// <summary>
        /// 充值状态（0、失败；1、成功,2、已退款）
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String statusName { get; set; }


        /// <summary>
        /// 交易类型名称
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String typeName { get; set; }

        /// <summary>
        /// 支付方式
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String payment { get; set; }

        /// <summary>
        /// 储值金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal? money { get; set; }

        /// <summary>
        /// 赠送金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal? giftAmount { get; set; }

        /// <summary>
        /// 操作人
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String sysUser { get; set; }

        /// <summary>
        /// 退款操作
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String refundOpr { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String memo { get; set; }

        /// <summary>
        /// 赠送金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal? balance { get; set; }

        /// <summary>
        /// 赠送金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal? giftBalance { get; set; }
    }

    /// <summary>
    /// 销售明细
    /// </summary>
    public partial class ReportOrderDetail : corecmsfoodorderdetail
    {
        /// <summary>
        /// 班次编号
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string classNumber { get; set; }

        /// <summary>
        /// 门店名称
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string storeName { get; set; }

        /// <summary>
        /// 桌号
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string deskNo { get; set; }

        /// <summary>
        /// 会员卡号
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string userNumber { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string userMobile { get; set; }

        /// <summary>
        /// 积分
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Decimal point { get; set; }

        /// <summary>
        /// 时间
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public DateTime? createTime { get; set; }
    }
}